package net.zhengxinyun.performance.service.indicators;

import net.zhengxinyun.performance.dto.ExcelDTO;
import net.zhengxinyun.performance.entity.CountryIndicatorsEntity;
import net.zhengxinyun.performance.entity.UserEntity;
import net.zhengxinyun.performance.filter.CountryIndicatorsFilter;

import java.util.List;
import java.util.Map;

/**
 * @Auther: hyp
 * @Date: 2018/10/29 18:08
 */
public interface CountryIndicatorsService {
    String delete(CountryIndicatorsEntity countryIndicatorsEntity);

    int update(CountryIndicatorsEntity countryIndicatorsEntity);

    int insert(CountryIndicatorsEntity countryIndicatorsEntity);

    List<CountryIndicatorsFilter> query(CountryIndicatorsFilter countryIndicatorsFilter);

    Integer queryForCount(CountryIndicatorsFilter countryIndicatorsFilter);

    void setIdByName(String name,String dateTime,CountryIndicatorsEntity countryIndicatorsEntity);

    List<CountryIndicatorsFilter> querySecondIndex(CountryIndicatorsFilter countryIndicatorsFilter, UserEntity userEntity);

    List<Map<String,Object>> getIndexMap(List<CountryIndicatorsFilter> list);

    List<CountryIndicatorsFilter> queryByTwoTable(CountryIndicatorsFilter countryIndicatorsFilter);

    CountryIndicatorsEntity queryById(Long id);

    List<CountryIndicatorsFilter> queryForAudit(CountryIndicatorsFilter countryIndicatorsFilter);

    int queryForAuditCount(CountryIndicatorsFilter countryIndicatorsFilter);
    int saveExcelCityIndex(List<ExcelDTO> list,String datetime);
}
